<?php
	include_once '/home/mmediaai/www//ad/sys/com/model/db/DBConn.php';	
	
	$conn = new DBConn ();
	
	$sql = "
		    update ad set isNew = 0
			where datediff(curdate(), createTime) >=7 
			and isNew = 1 
	";
	mysql_query($sql);
	$conn->close();
?>